//创建书对象
//书名bookName，作者author，介绍introduce，编号code，价格price，时间pubtime
var bookObj = {
  bookName: '三国演义',
  author: '吴承恩',
  introduce: '一个战火纷飞的年代',
  code: 20180613001,
  price: 68.88,
  pubtime: '2006-10-01'
};
//往对象中添加属性
//bookObj.pubname = '图灵出版社';
bookObj['pubname'] = '图灵出版社';
//console.log(bookObj);
//获取对象中的属性值
console.log(bookObj.author);
console.log(bookObj.introduce);
//修改对象中的属性值
bookObj.author = '罗贯中';
bookObj['price'] = 50.00;
console.log(bookObj);
















